let arr = [
	{ name: 'jack', age: 18, score: 98 },
	{ name: 'rose', age: 21, score: 98 },
	{ name: 'jack', age: 22, score: 98 },
	{ name: 'rose', age: 19, score: 98 },
	{ name: 'jack', age: 18, score: 98 },
]

for (let i = arr.length - 1; i > 0; i--) {
    let k = 1
	for (let j = arr.length - 1 - k; j > 0; j--) {
        k++
        // console.log('k ',k , ' j ',j, ' i ',i)
        if(arr[i].name == arr[j].name){
            arr.splice(j,1)
            j++
        }
        console.log('arr :',arr)
    }
   
}
console.log(arr);
